const state = {
    msg: 'hello'
}
const mutations = {
    changeMsg(state, msg) {
        state                .msg = msg
    }
}
const actions = {

}
const getters = {

}
export default {
    state,
    mutations,
    actions,
    getters,
    //默认是注册在全局的,即使抽走也是全局
    //使用namespace关键字则使内部模块高封闭性
    namespaced: true
}